import pyglet
from pyglet_utils import load_image

class GameOverScreen(object):
    def __init__(self, window, score):
        width, height = window.width, window.height
        self.batch = pyglet.graphics.Batch()
        self.labels = []
        bg = load_image('background.png')
        self.background = pyglet.sprite.Sprite(bg, 0, 0, batch=self.batch)
        go = pyglet.text.Label('Game Over', font_name='Arial',
        font_size=72, bold=True, batch=self.batch)
        s = pyglet.text.Label('You Scored: %d' %(score),
        font_name='Arial', font_size=24, bold=True, batch=self.batch)


    def render(self):
        self.batch.draw()